debian/run-tests.sh: Only print full log on errors
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 9 Jul 2021 02:54:07 +0000 (04:54 +0200)
committerMarco Trevisan (Treviño) <marco@ubuntu.com>
Fri, 9 Jul 2021 14:02:45 +0000 (16:02 +0200)
No need to output the whole log if there have been no failures

debian/run-tests.sh

index 70df6d3577117c67897cc20f91545b8a2fc45a5d..aee985d08a251a9a0e9fcab09496a297e7c3f5f9 100755 (executable)
@@ -13,7 +13,6 @@ mkdir -p "$test_data"
 
 cleanup() {
     rm -rf "$test_data"
-    rm -f "$BUILDDIR/meson-logs/testlog-$BACKEND.txt"
 
     # Avoid incremental builds with -nc leaking settings into the next build
     for reftest in $FUZZY_REFTESTS; do
@@ -57,12 +56,11 @@ env \
                 --generate sv_SE \
                 -- \
                     meson test -C "$BUILDDIR" \
+                    --print-errorlogs \
                     --setup="$BACKEND" \
                     "$@" \
         || touch "$test_data/tests-failed"
 
-tail -v -n +0 "$BUILDDIR/meson-logs/testlog-$BACKEND.txt" || true
-
 # Don't base64-encode the image results for tests that upstream
 # expect to fail
 for reftest in $XFAIL_REFTESTS; do